<template>
  <el-dialog :title="title" :visible.sync="sendModalShow" :before-close="changeModalHide">
    <el-form>
      <el-form-item label="用户名" :label-width="labelWidth" v-if="formAttr.hasOwnProperty('username')">
        <el-input autocomplete="off" :disabled="isDisabledName" v-model="formAttr.username"></el-input>
      </el-form-item>
      <el-form-item label="密码" :label-width="labelWidth" v-if="formAttr.hasOwnProperty('password')">
        <el-input autocomplete="off" :disabled="isDisabledPwd" v-model="formAttr.password"></el-input>
      </el-form-item>
      <el-form-item label="邮箱" :label-width="labelWidth" v-if="formAttr.hasOwnProperty('email')">
        <el-input autocomplete="off" :disabled="isDisabledEmail" v-model="formAttr.email"></el-input>
      </el-form-item>
      <el-form-item label="手机" :label-width="labelWidth" v-if="formAttr.hasOwnProperty('mobile')">
        <el-input autocomplete="off" :disabled="isDisabledMobile" v-model="formAttr.mobile"></el-input>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="changeModalHide">取 消</el-button>
      <!-- 放确定按钮的插槽 -->
      <slot></slot>
    </div>
  </el-dialog>
</template>
<script></script>
<style></style>